3.87 \(\int \frac {1}{x (a x+b x^3+c x^5)} \, dx\)

Optimal. Leaf size=174 \[ -\frac {\sqrt {c} \left (\frac {b}{\sqrt {b^2-4 a c}}+1\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\sqrt {c} \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {\sqrt {b^2-4 a c}+b}}\right )}{\sqrt {2} a \sqrt {\sqrt {b^2-4 a c}+b}}-\frac {1}{a x} \]

[Out]

-1/a/x-1/2*arctan(x*2^(1/2)*c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2))*c^(1/2)*(1+b/(-4*a*c+b^2)^(1/2))/a*2^(1/2)/(
b-(-4*a*c+b^2)^(1/2))^(1/2)-1/2*arctan(x*2^(1/2)*c^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2))*c^(1/2)*(1-b/(-4*a*c+b^
2)^(1/2))/a*2^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.20, antiderivative size = 174, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1585, 1123, 1166, 205} \[ -\frac {\sqrt {c} \left (\frac {b}{\sqrt {b^2-4 a c}}+1\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\sqrt {c} \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {\sqrt {b^2-4 a c}+b}}\right )}{\sqrt {2} a \sqrt {\sqrt {b^2-4 a c}+b}}-\frac {1}{a x} \]

Antiderivative was successfully verified.

[In]

Int[1/(x*(a*x + b*x^3 + c*x^5)),x]

[Out]

-(1/(a*x)) - (Sqrt[c]*(1 + b/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt
[2]*a*Sqrt[b - Sqrt[b^2 - 4*a*c]]) - (Sqrt[c]*(1 - b/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sq
rt[b^2 - 4*a*c]]])/(Sqrt[2]*a*Sqrt[b + Sqrt[b^2 - 4*a*c]])

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 1123

Int[((d_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*x^2 +
 c*x^4)^(p + 1))/(a*d*(m + 1)), x] - Dist[1/(a*d^2*(m + 1)), Int[(d*x)^(m + 2)*(b*(m + 2*p + 3) + c*(m + 4*p +
 5)*x^2)*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, p}, x] && NeQ[b^2 - 4*a*c, 0] && LtQ[m, -1] && In
tegerQ[2*p] && (IntegerQ[p] || IntegerQ[m])

Rule 1166

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1585

Int[(u_.)*(x_)^(m_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.) + (c_.)*(x_)^(r_.))^(n_.), x_Symbol] :> Int[u*x^(m +
 n*p)*(a + b*x^(q - p) + c*x^(r - p))^n, x] /; FreeQ[{a, b, c, m, p, q, r}, x] && IntegerQ[n] && PosQ[q - p] &
& PosQ[r - p]

Rubi steps

\begin {align*} \int \frac {1}{x \left (a x+b x^3+c x^5\right )} \, dx &=\int \frac {1}{x^2 \left (a+b x^2+c x^4\right )} \, dx\\ &=-\frac {1}{a x}+\frac {\int \frac {-b-c x^2}{a+b x^2+c x^4} \, dx}{a}\\ &=-\frac {1}{a x}-\frac {\left (c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {1}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{2 a}-\frac {\left (c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {1}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{2 a}\\ &=-\frac {1}{a x}-\frac {\sqrt {c} \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\sqrt {c} \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {b+\sqrt {b^2-4 a c}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.40, size = 191, normalized size = 1.10 \[ -\frac {\frac {\sqrt {2} \sqrt {c} \left (\sqrt {b^2-4 a c}+b\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\sqrt {2} \sqrt {c} \left (\sqrt {b^2-4 a c}-b\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {\sqrt {b^2-4 a c}+b}}\right )}{\sqrt {b^2-4 a c} \sqrt {\sqrt {b^2-4 a c}+b}}+\frac {2}{x}}{2 a} \]

Antiderivative was successfully verified.

[In]

Integrate[1/(x*(a*x + b*x^3 + c*x^5)),x]

[Out]

-1/2*(2/x + (Sqrt[2]*Sqrt[c]*(b + Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/
(Sqrt[b^2 - 4*a*c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + (Sqrt[2]*Sqrt[c]*(-b + Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sq
rt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[b^2 - 4*a*c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]))/a

________________________________________________________________________________________

fricas [B]  time = 1.19, size = 1116, normalized size = 6.41 \[ -\frac {\sqrt {\frac {1}{2}} a x \sqrt {-\frac {b^{3} - 3 \, a b c + {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}}{a^{3} b^{2} - 4 \, a^{4} c}} \log \left (-2 \, {\left (b^{2} c^{2} - a c^{3}\right )} x + \sqrt {\frac {1}{2}} {\left (b^{5} - 5 \, a b^{3} c + 4 \, a^{2} b c^{2} - {\left (a^{3} b^{4} - 6 \, a^{4} b^{2} c + 8 \, a^{5} c^{2}\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}\right )} \sqrt {-\frac {b^{3} - 3 \, a b c + {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}}{a^{3} b^{2} - 4 \, a^{4} c}}\right ) - \sqrt {\frac {1}{2}} a x \sqrt {-\frac {b^{3} - 3 \, a b c + {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}}{a^{3} b^{2} - 4 \, a^{4} c}} \log \left (-2 \, {\left (b^{2} c^{2} - a c^{3}\right )} x - \sqrt {\frac {1}{2}} {\left (b^{5} - 5 \, a b^{3} c + 4 \, a^{2} b c^{2} - {\left (a^{3} b^{4} - 6 \, a^{4} b^{2} c + 8 \, a^{5} c^{2}\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}\right )} \sqrt {-\frac {b^{3} - 3 \, a b c + {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}}{a^{3} b^{2} - 4 \, a^{4} c}}\right ) + \sqrt {\frac {1}{2}} a x \sqrt {-\frac {b^{3} - 3 \, a b c - {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}}{a^{3} b^{2} - 4 \, a^{4} c}} \log \left (-2 \, {\left (b^{2} c^{2} - a c^{3}\right )} x + \sqrt {\frac {1}{2}} {\left (b^{5} - 5 \, a b^{3} c + 4 \, a^{2} b c^{2} + {\left (a^{3} b^{4} - 6 \, a^{4} b^{2} c + 8 \, a^{5} c^{2}\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}\right )} \sqrt {-\frac {b^{3} - 3 \, a b c - {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}}{a^{3} b^{2} - 4 \, a^{4} c}}\right ) - \sqrt {\frac {1}{2}} a x \sqrt {-\frac {b^{3} - 3 \, a b c - {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}}{a^{3} b^{2} - 4 \, a^{4} c}} \log \left (-2 \, {\left (b^{2} c^{2} - a c^{3}\right )} x - \sqrt {\frac {1}{2}} {\left (b^{5} - 5 \, a b^{3} c + 4 \, a^{2} b c^{2} + {\left (a^{3} b^{4} - 6 \, a^{4} b^{2} c + 8 \, a^{5} c^{2}\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}\right )} \sqrt {-\frac {b^{3} - 3 \, a b c - {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{a^{6} b^{2} - 4 \, a^{7} c}}}{a^{3} b^{2} - 4 \, a^{4} c}}\right ) + 2}{2 \, a x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(c*x^5+b*x^3+a*x),x, algorithm="fricas")

[Out]

-1/2*(sqrt(1/2)*a*x*sqrt(-(b^3 - 3*a*b*c + (a^3*b^2 - 4*a^4*c)*sqrt((b^4 - 2*a*b^2*c + a^2*c^2)/(a^6*b^2 - 4*a
^7*c)))/(a^3*b^2 - 4*a^4*c))*log(-2*(b^2*c^2 - a*c^3)*x + sqrt(1/2)*(b^5 - 5*a*b^3*c + 4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 - 3*a*b*c - (a^3*b^2 - 4*a^4*c)*sqr
t((b^4 - 2*a*b^2*c + a^2*c^2)/(a^6*b^2 - 4*a^7*c)))/(a^3*b^2 - 4*a^4*c))*log(-2*(b^2*c^2 - a*c^3)*x - sqrt(1/2
)*(b^5 - 5*a*b^3*c + 4*a^2*b*c^2 + (a^3*b^4 - 6*a^4*b^2*c + 8*a^5*c^2)*sqrt((b^4 - 2*a*b^2*c + a^2*c^2)/(a^6*b
^2 - 4*a^7*c)))*sqrt(-(b^3 - 3*a*b*c - (a^3*b^2 - 4*a^4*c)*sqrt((b^4 - 2*a*b^2*c + a^2*c^2)/(a^6*b^2 - 4*a^7*c
)))/(a^3*b^2 - 4*a^4*c))) + 2)/(a*x)

________________________________________________________________________________________

giac [B]  time = 1.88, size = 1839, normalized size = 10.57 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(c*x^5+b*x^3+a*x),x, algorithm="giac")

[Out]

-1/8*(2*a^2*b^4*c^2 - 8*a^3*b^2*c^3 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^2*b^4 + 4*sq
rt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^3*b^2*c + 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqr
t(b^2 - 4*a*c)*c)*a^2*b^3*c - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^2*b^2*c^2 - 2*(b^2 -
 4*a*c)*a^2*b^2*c^2 + (2*b^4*c^2 - 16*a*b^2*c^3 + 32*a^2*c^4 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 -
 4*a*c)*c)*b^4 + 8*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b^2*c + 2*sqrt(2)*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^4*c + 2*a*b^5*c + 16*sqrt(2)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a^3*b*c^2 + 8*sqrt(2)*sqrt(b*c
- sqrt(b^2 - 4*a*c)*c)*a^2*b^2*c^2 + sqrt(2)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a*b^3*c^2 - 16*a^2*b^3*c^2 - 4*sq
rt(2)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a^2*b*c^3 + 32*a^3*b*c^3 - 2*(b^2 - 4*a*c)*a*b^3*c + 8*(b^2 - 4*a*c)*a^2
*b*c^2)*abs(a))*arctan(2*sqrt(1/2)*x/sqrt((a*b - sqrt(a^2*b^2 - 4*a^3*c))/(a*c)))/((a^3*b^4 - 8*a^4*b^2*c - 2*
a^3*b^3*c + 16*a^5*c^2 + 8*a^4*b*c^2 + a^3*b^2*c^2 - 4*a^4*c^3)*abs(a)*abs(c)) - 1/(a*x)

________________________________________________________________________________________

maple [A]  time = 0.02, size = 232, normalized size = 1.33 \[ \frac {\sqrt {2}\, b c \arctanh \left (\frac {\sqrt {2}\, c x}{\sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {-4 a c +b^{2}}\, \sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}\, a}+\frac {\sqrt {2}\, b c \arctan \left (\frac {\sqrt {2}\, c x}{\sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {-4 a c +b^{2}}\, \sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}\, a}+\frac {\sqrt {2}\, c \arctanh \left (\frac {\sqrt {2}\, c x}{\sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}\, a}-\frac {\sqrt {2}\, c \arctan \left (\frac {\sqrt {2}\, c x}{\sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}\, a}-\frac {1}{a x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x/(c*x^5+b*x^3+a*x),x)

[Out]

-1/a/x+1/2/a*c*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*c*x
)+1/2/a*c/(-4*a*c+b^2)^(1/2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(2^(1/2)/((-b+(-4*a*c+b^2)^(1/2)
)*c)^(1/2)*c*x)*b-1/2/a*c*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(
1/2)*c*x)+1/2/a*c/(-4*a*c+b^2)^(1/2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(2^(1/2)/((b+(-4*a*c+b^2)^
(1/2))*c)^(1/2)*c*x)*b

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(c*x^5+b*x^3+a*x),x, algorithm="maxima")

[Out]

-integrate((c*x^2 + b)/(c*x^4 + b*x^2 + a), x)/a - 1/(a*x)

________________________________________________________________________________________

mupad [B]  time = 2.86, size = 2997, normalized size = 17.22 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x*(a*x + b*x^3 + c*x^5)),x)

[Out]

- atan(((x*(4*a^4*c^4 - 2*a^3*b^2*c^3) + (-(b^5 + b^2*(-(4*a*c - b^2)^3)^(1/2) + 12*a^2*b*c^2 - 7*a*b^3*c - a*
c*(-(4*a*c - b^2)^3)^(1/2))/(8*(a^3*b^4 + 16*a^5*c^2 - 8*a^4*b^2*c)))^(1/2)*(4*a^4*b^3*c^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2 -
8*a^4*b^2*c)))^(1/2)*2i - 1/(a*x)

________________________________________________________________________________________

sympy [A]  time = 2.62, size = 148, normalized size = 0.85 \[ \operatorname {RootSum} {\left (t^{4} \left (256 a^{5} c^{2} - 128 a^{4} b^{2} c + 16 a^{3} b^{4}\right ) + t^{2} \left (48 a^{2} b c^{2} - 28 a b^{3} c + 4 b^{5}\right ) + c^{3}, \left (t \mapsto t \log {\left (x + \frac {- 64 t^{3} a^{5} c^{2} + 48 t^{3} a^{4} b^{2} c - 8 t^{3} a^{3} b^{4} - 10 t a^{2} b c^{2} + 10 t a b^{3} c - 2 t b^{5}}{a c^{3} - b^{2} c^{2}} \right )} \right )\right )} - \frac {1}{a x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(c*x**5+b*x**3+a*x),x)

[Out]

RootSum(_t**4*(256*a**5*c**2 - 128*a**4*b**2*c + 16*a**3*b**4) + _t**2*(48*a**2*b*c**2 - 28*a*b**3*c + 4*b**5)
 + c**3, Lambda(_t, _t*log(x + (-64*_t**3*a**5*c**2 + 48*_t**3*a**4*b**2*c - 8*_t**3*a**3*b**4 - 10*_t*a**2*b*
c**2 + 10*_t*a*b**3*c - 2*_t*b**5)/(a*c**3 - b**2*c**2)))) - 1/(a*x)

________________________________________________________________________________________